home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 247_02 / sample.cpp < prev    next >
Text File  |  1989-04-17  |  384b  |  19 lines

  1. /*
  2.  * Example program
  3.  */
  4.  
  5. #include <stream.hpp>
  6. #include "flash.hpp"
  7.  
  8. miracl precision=(-35);
  9.  
  10. main()
  11. { /* Brents example program */
  12.     Flash x;
  13.     cout << pi() << "\n";
  14.     x=exp(pi()*sqrt((Flash)"163/9"));
  15.     cout << x << "\n";
  16.     cout << pow(x,3) << "\n";
  17. }
  18.  
  19.